home *** CD-ROM | disk | FTP | other *** search
- Path: castle.nando.net!news
- From: actuary@nando.net (Bill McCarthy)
- Newsgroups: comp.lang.c
- Subject: Re: C coding problem
- Date: 15 Mar 1996 06:24:35 GMT
- Organization: Nando.net Public Access
- Message-ID: <4ib2f3$hn0@castle.nando.net>
- References: <4ianbf$h86@solutions.solon.com>
- Reply-To: actuary@nando.net (Bill McCarthy)
- NNTP-Posting-Host: grail1112.nando.net
- X-Newsreader: IBM NewsReader/2 v1.2
-
- In <4ianbf$h86@solutions.solon.com>, proctor@corp.hp.com (Stephen Proctor) writes:
- >
- >1.) The following is the compilation line and the resulting warning message,
- >
- >% c89 shell.c -o shell
- >cc: "shell.c", line 98: warning 608: Illegal integer-pointer
- >combination in assignment.
- >
- >2.) The program is as follows,
- >
- >#include <stdio.h>
- >#include <ctype.h>
- >#include <string.h>
- >#include <stdlib.h>
- >
- >main(int argc, char *argv[])
- >{
- >int ii;
- >int option_val = 0;
- >/* skip lines */
- >for (ii=1; ii<argc; ii++) {
- >/* skip lines */
- >/* The next line is the offending line */
- > if (*argv[ii] == '-') option_val = read_options;
- >/* skip lines */
- >return 0; /* Program executed successfully */
- >}
-
- You don't show the declaration for read_options. Might
- it be an int pointer?
-
- Bill McCarthy
- actuary@nando.net
- Wendell, NC USA
-
-